import { RouteRecordRaw } from 'vue-router'

const users: Array<RouteRecordRaw> = [
  {
    path: '/user',
    name: 'user',
    component: () => import('@/views/user'),
    meta: {
      title: '个人中心',
      rightText: '',
      requireAuth: false
    }
  },
  {
    path: '/user/restaurantInfo',
    name: 'userRestaurantInfo',
    component: () => import('@/views/user/restaurantInfo'),
    meta: {
      title: '餐厅信息',
      rightText: '',
      requireAuth: false
    }
  },
  {
    path: '/user/comment',
    name: 'userComment',
    component: () => import('@/views/user/comment'),
    meta: {
      title: '留言板',
      rightText: '',
      requireAuth: true
    }
  },
  {
    path: '/user/userInfo',
    name: 'userUserInfo',
    component: () => import('@/views/user/userInfo'),
    meta: {
      title: '用户信息',
      rightText: '',
      requireAuth: true
    }
  },
  {
    path: '/user/favorite',
    name: 'userFavorite',
    component: () => import('@/views/user/favorite'),
    meta: {
      title: '收藏商品',
      rightText: '',
      requireAuth: true
    }
  },
  {
    path: '/user/signIn',
    name: 'userSignIn',
    component: () => import('@/views/user/signIn'),
    meta: {
      title: '签到首页',
      rightText: '',
      requireAuth: true
    }
  },
  {
    path: '/user/walletLog',
    name: 'userWalletLog',
    component: () => import('@/views/user/walletLog'),
    meta: {
      title: '账户明细',
      rightText: '',
      requireAuth: true
    }
  },
]

export default users